import request from "@/utils/request";

// 查询列表
export function listCostCategory(query) {
  return request({
    url: "/system/cosingConfig/list",
    method: "get",
    params: query,
  });
}
//添加成本类别
export function addCostCategory(data) {
  return request({
    url: "/system/cosingConfig",
    method: "post",
    data: data,
  });
}
//修改成本类别
export function editCostCategory(data) {
  return request({
    url: "/system/cosingConfig",
    method: "put",
    data: data,
  });
}
//删除成本类别
export function delCostCategory(id) {
  return request({
    url: "/system/cosingConfig/" + id,
    method: "delete",
  });
}
//查询成本类别
export function queryCostCategory(id) {
  return request({
    url: "/system/cosingConfig/" + id,
    method: "get",
  });
}
